<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<link rel="stylesheet" href="jquery-easyui-1.4/themes/icon.css" type="text/css"></link>
	  <link rel="stylesheet" 	href="jquery-easyui-1.4/themes/default/easyui.css" type="text/css"></link>
  <link rel="stylesheet" 	href="css/global.css" type="text/css"></link>
  <script type="text/javascript" src="jquery-easyui-1.4/jquery.min.js"></script>
  <script type="text/javascript" src="jquery-easyui-1.4/jquery.easyui.min.js"></script>
  <script type="text/javascript" src="jquery-easyui-1.4/locale/easyui-lang-zh_CN.js"></script>
  <script type="text/javascript" src="js/formatStrToDate.js"></script>
   <script type="text/javascript" src="admin/notice/noticeList.js"></script>
   <style type="text/css">
   	.input-width{
   	width: 100px;
   	}
   	.input-height{
   		width: 30px;
   	}
   </style>
  </head>
  <body>
   <!-- 查询部分 -->
	<div style="height: 40px; overflow: hidden;">
		<form id="search">
			<div style="height: 30px; margin-left: 5px;">
				<div style="float: left; margin-top: 8px;">
					<span>标题:</span>
					<input id="vv" class="easyui-validatebox" style="height: 25px;" name="noticeTitle" id="search_noticeTitle" /> 
					<span>时间:</span>
					<input class="easyui-datetimebox" name="createDate"	id="search_createDate" data-options="showSeconds:false" style="height: 25px;">
				</div>
				<div style="float: left; margin-top: 7px; margin-left: 5px;">
					<a id="query" href="javascript:query();" class="easyui-linkbutton"
						data-options="iconCls:'icon-search'">查询</a> 
					<a id="clear"
						href="javascript:clear();" class="easyui-linkbutton"
						data-options="iconCls:'icon-reload'">清空</a>
				</div>
			</div>
		</form>
	</div>
	<!-- datagrid部分 -->
	<div style="height:91%;">
  			<table id="dg"></table> 
  	</div>
	<div id="tb">
		<a href="javascript:add();" class="easyui-linkbutton"
			data-options="iconCls:'icon-add',plain:true">添加</a> <a
			href="javascript:edit();" class="easyui-linkbutton"
			data-options="iconCls:'icon-edit',plain:true">修改</a> <a
			href="javascript:del();" class="easyui-linkbutton"
			data-options="iconCls:'icon-edit',plain:true">删除</a> <a
			href="javascript:refresh();" class="easyui-linkbutton"
			data-options="iconCls:'icon-reload',plain:true">刷新</a>
	</div>
	<!-- 添加 -->
	<div id="dlg" class="easyui-dialog"
		style="width: 420px; height: 220px; padding-left: 20px;" closed="true"
		buttons="#dlg-buttons">
		<form action="" id="notice" method="post">
			<table style="line-height: 30px;">
				<tr>
					<th width="60">标题:</th>
					<td><input type="text" name="noticeTitle"
						class="easyui-validatebox" style="width: 265px" ></td>
				</tr>
				<tr>
					<th width="60">内容:</th>
					<td><textarea cols="40" rows="4" name="noticeDetail"
							class="easyui-validatebox" style="width: 265px"></textarea></td>
				</tr>
			</table>
		</form>
	</div>
	<div id="dlg-buttons" style="text-align: center">
		<a href="javascript:saveOrEdit();" class="easyui-linkbutton"
			iconCls="icon-ok">保存</a> <a href="javascript:closeDialog();"
			class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
	</div>
</body>
</html>
